<?php

include("inc/header.php");
$do = $_GET['do'];
	
	if ($do == "backup") { //send backup file to user, header info
			$file = $databaseinfo['dbname'].'.sql'; //the current dump
		header('Content-Type: application/text');
		header('Content-Length: '.$_GET['size'].'');
		header('Content-disposition: attachment; filename='.$databaseinfo['dbname'].'.sql');
		readfile($file);
	}
	
?>
